<%@ page language="java" pageEncoding="GBK" %>
<%@ page contentType="text/html; charset=gbk" language="java"%>
<%@ page import="com.hd123.rumba.request.JspLib"%>
<%@ page import="com.hd123.rumba.request.Dictionary"%>

<%@ page import="java.util.Date"%>

<%@ page import="com.hd123.rumba.action.ViewApplication"%>
<%@ page import="com.hd123.rumba.navigation.menu.BMenu"%>
<%
Dictionary dd = (Dictionary)request.getAttribute("dd");

BMenu mainMenu = (BMenu) dd.get("mainMenu");
%>
<html>
<head>
	<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
	<link rel="STYLESHEET" type="text/css" href="<%=JspLib.getStaticContent("rumba/theme/1/TopBanner.css")%>"/>
	<script language="javascript" src="<%=JspLib.getStaticContent("rumba/script/prototype.js")%>"></script>
	<script language="javascript" src="<%=JspLib.getStaticContent("rumba/script/RBasic.js")%>"></script>
	<script language="javascript" src="<%=JspLib.getStaticContent("rumba/script/debug/RDebug.js")%>"></script>
	<script language="javascript" src="<%=JspLib.getStaticContent("rumba/script/menu/RMainMenus.js")%>"></script>
</head>

<script type="text/javascript">
var rjsPath = "<%=JspLib.getStaticContent("rumba/script")%>";
</script>

<body onload="loadPage();">

<table width="100%" height="100%" cellpadding=0 cellspacing=0px border=0px>
<tr>
	<td align="left" valign="top">
		<img border=0 alt="" src="<%=JspLib.getStaticContent("rumba/images/frame/Logo.gif")%>" width="140px" height="27px">
	</td>
	<td width=100% valign="top" style="padding-left: 6px; padding-right: 6px">
		<div id="topMenu"></div>
	</td>
	<td width=1px>
		<table cellpadding=0 cellspacing=0 border=0><tr>
		<td align="left" valign="top">
			<img border=0 alt="" src="<%=JspLib.getStaticContent("rumba/images/frame/Clock_Left.gif")%>">
		</td>
		<td nowrap style="padding-left:2px; padding-right:3px"
			background="<%=JspLib.getStaticContent("rumba/images/frame/Clock_bg.gif")%>">
			<font id="clock" color=yellow><%=JspLib.format(new Date(), "yyyy.M.d HH:mm")%></font>
		</td>
		</tr></table>
		<!-- table width=80px cellpadding="0" cellspacing="0" border="0px"><tr>
			<td>
				<table width=100% cellpadding="0" cellspacing="0" border="0" >
				<tr><td class="time" align="center"><%=JspLib.format(new Date(), "yyyy.M.d")%></td></tr>
				<tr><td class="time" align="center"><%=JspLib.format(new Date(), "HH:mm:ss")%></td></tr>
				<tr><td class="time" align="center"><%=JspLib.format(new Date(), "E")%></td></tr>
				</table>
			</td>
			<td width=20px></td>
		</tr></table -->
	</td>
</tr>
</table>

</body>

<script type="text/javascript">
var topMenu = null;
var defMiId = null;

function buildTopMenu() {
	topMenu = new RTopMenu();
<%=ViewApplication.toJS_TopMenu(mainMenu, "topMenu", "defMiId")%>
	topMenu.showIn($("topMenu"));
}

function refreshClock() {
	var str = formatDate(new Date(), "yyyy.M.d HH:mm");
	var clock = $("clock");
	if (str != clock.innerHTML)
		clock.innerHTML = str;
	setTimeout("refreshClock()", 1000);
}

function loadPage() {
	buildTopMenu();
	var mi = topMenu.getItemById(defMiId);
	if (isDefined(mi)) {
		topMenu.setSelectedItem(mi);
		mi.fireLinks();
	}
	refreshClock();
}

</script>

</html>
